Auckland R Ladies Meetup

Creating Maps in R

Dr Sarah Marshall, Senior Lecturer, Dept Mathematical Sciences, AUT

12 September 2018

Welcome to the R Ladies Meet Up: Creating Maps in R

Overview

Types of maps

R packages

Exercises

Can you guess what I did on Saturday night?

R package: ggmap

Can you guess what I did on Saturday night?

R package: ggmap

World map

R package: ggplot2

World map without axes

R package: ggplot2

World map: P!nk’s Beautiful Trauma Tour

R package: ggplot2

World map showing life expectancy by country

R package: tmap

World map showing population of cities

R package: tmap

World map showing population growth over time

Adapted from https://geocompr.robinlovelace.net/adv-map.html

R package: tmap

World map showing population growth over time

Data source: World Bank

R package: tmap

NZ map

R package: leaflet

Auckland map

Data source: Statistics New Zealand

R package: leaflet

Auckland map with area units (from shape file)

Data source: Statistics New Zealand

R package: leaflet

Auckland map with income and rent

Data source: Statistics New Zealand

R package: leaflet

Overview

Types of maps

R packages

Exercises

References & Acknowledgements

Resources